﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace DukeNUS.FacilitiesPlanning.FPSystem.Models
{
    /// <summary>
    /// The application's entity model for the 'logactivities' table.
    /// </summary>
    public class LogActivity
    {

        public LogActivity()
        {
            Date = DateTime.Now.Date;
            Time = DateTime.Now.TimeOfDay;
            Action = "";
            Remarks = "";
        }

        [Key]
        public int LogAcivityId { get; set; }

        public DateTime Date { get; set; }

        public TimeSpan Time { get; set; }

        [ForeignKey("User")]
        public int UserID { get; set; }

        public virtual User User { get; set; }

        [Required, MaxLength(15)]
        public string Action { get; set; }

        public string Remarks { get; set; }

    }
}